package com.piesat.feaedit.feaedit.service;

import com.piesat.feaedit.feaedit.bean.FeatureBean;
import com.piesat.feaedit.feaedit.bean.request.ServiceStatus;
import com.piesat.feaedit.feaedit.bean.request.UpdateFeatureRequest;
import org.springframework.core.io.FileSystemResource;

import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;

public interface IFeatureService {
    void dataEntry(File file, String tableName) throws Exception;

    FeatureBean findFeature(String tableName, Double lng, Double lat);

    Object queryTask(String taskId, String type);

    void updateFeature(UpdateFeatureRequest featureBean);

    ServiceStatus publishServer(String tableName, String strokeColor, String strokeWidth, String strokeOpacity, String fillColor, String fillOpacity) throws IOException;

    void deleteAllData(String tableName);

    void exportShp(String tableName) throws UnsupportedEncodingException;

    void deleteFeature(String tableName, String featureId);

    FileSystemResource download(String tableName);
}
